package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SoftCenter;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLBigDecimalTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SoftCenterProxy extends AbstractProxyEntity<SoftCenterProxy, SoftCenter> {

    private static final Class<SoftCenter> entityClass = SoftCenter.class;

    public static final SoftCenterProxy TABLE = createTable().createEmpty();

    public static SoftCenterProxy createTable() {
        return new SoftCenterProxy();
    }

    public SoftCenterProxy() {
    }

    /**
     * {@link SoftCenter#getSystemId}
     */
    public SQLStringTypeColumn<SoftCenterProxy> systemId() {
        return getStringTypeColumn("systemId");
    }

    /**
     * {@link SoftCenter#getCenterId}
     */
    public SQLStringTypeColumn<SoftCenterProxy> centerId() {
        return getStringTypeColumn("centerId");
    }

    /**
     * {@link SoftCenter#getCenterName}
     */
    public SQLStringTypeColumn<SoftCenterProxy> centerName() {
        return getStringTypeColumn("centerName");
    }

    /**
     * {@link SoftCenter#getCenterAddr}
     */
    public SQLStringTypeColumn<SoftCenterProxy> centerAddr() {
        return getStringTypeColumn("centerAddr");
    }

    /**
     * {@link SoftCenter#getCenterSeq}
     */
    public SQLBigDecimalTypeColumn<SoftCenterProxy> centerSeq() {
        return getBigDecimalTypeColumn("centerSeq");
    }

    @Override
    public Class<SoftCenter> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SoftCenterProxyFetcher FETCHER = new SoftCenterProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SoftCenterProxyFetcher extends AbstractFetcher<SoftCenterProxy, SoftCenter, SoftCenterProxyFetcher> {

        public SoftCenterProxyFetcher(SoftCenterProxy proxy, SoftCenterProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link SoftCenter#getSystemId}
         */
        public SoftCenterProxyFetcher systemId() {
            return add(getProxy().systemId());
        }

        /**
         * {@link SoftCenter#getCenterId}
         */
        public SoftCenterProxyFetcher centerId() {
            return add(getProxy().centerId());
        }

        /**
         * {@link SoftCenter#getCenterName}
         */
        public SoftCenterProxyFetcher centerName() {
            return add(getProxy().centerName());
        }

        /**
         * {@link SoftCenter#getCenterAddr}
         */
        public SoftCenterProxyFetcher centerAddr() {
            return add(getProxy().centerAddr());
        }

        /**
         * {@link SoftCenter#getCenterSeq}
         */
        public SoftCenterProxyFetcher centerSeq() {
            return add(getProxy().centerSeq());
        }

        @Override
        protected SoftCenterProxyFetcher createFetcher(SoftCenterProxy cp, AbstractFetcher<SoftCenterProxy, SoftCenter, SoftCenterProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SoftCenterProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
